#include <iostream>
#include "desk.h"


Desk::Desk()
{

}

void Desk::show()
{
    std::cout << "length = " << length
              << " width = "  << width
              << " height = " << height
              << " price = "  << price << std::endl;
}

void Desk::setDesk(int l, int w, int h, int p)
{
    length = l;
    width  = w;
    height = h;
    price  = p;
}

Desk &Desk::operator +(Desk &d)
{
    length += d.length;
    width += d.width;
    height += d.height;
    price += d.price;
    return *this;
}

void Desk::operator <<(int l)
{
    length = l;
}
